package com.xiaomi.service.Impl;

import com.xiaomi.dao.CppingjiaMapper;
import com.xiaomi.entity.Cppingjia;
import com.xiaomi.service.CppingjiaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CppingjiaServiceImpl implements CppingjiaService {
    @Resource
    CppingjiaMapper cppingjiaMapper;

    @Override
    public List<Cppingjia> selectAll(Map<String, Object> pars) {
        return cppingjiaMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return cppingjiaMapper.count(pars);
    }

    @Override
    public int update(Cppingjia cppingjia) {
        return cppingjiaMapper.update(cppingjia);
    }

    @Override
    public int add(Cppingjia cppingjia) {
        return cppingjiaMapper.add(cppingjia);
    }

    @Override
    public int del(int id) {
        return cppingjiaMapper.del(id);
    }
}
